z=1
while z==1:
    def isNum():
        try:
            a = eval(input("请随机输入一个字符串:\n"))
            if type(a) == int or type(a) == float or type(a) == complex:
                return True
            else:
                return False
        except:
                return False
    print(isNum())


